#ifndef _DHT11_H_
#define _DHT11_H_
#include "sys.h"
sbit DHT11_PIN = P1^7;

#define DHT11_IO_IN()		P1MDOUT &= 0x7F
#define DHT11_IO_OUT()	P1MDOUT |= 0x80
#define DHT11_DATA			DHT11_PIN

void dht11_reset();
u8 dht11_check();
u8 dht11_init();
u8 dht11_read_bit();
u8 dht11_read_byte();
u8 dht11_read_data(u8 * temp,u8 * hum);
#endif